package com.blqy.fr.model.log;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.blqy.fr.model.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "日志记录")
@TableName("log")
public class Log extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "创建日志的用户id")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "用户所属的团队id")
    @TableField("team_id")
    private Long teamId;

    @Schema(description = "日志所属的模板id")
    @TableField("template_id")
    private Long templateId;

    @Schema(description = "日志内容")
    @TableField("log_content")
    private Map<String,Object> logContent;

    @Schema(description = "是否正常提交(提交1，暂存2)")
    @TableField("submit")
    private Integer submit;

    @Schema(description = "正常提交1，补交2，未交3")
    @TableField("stat")
    private Integer stat;
}